<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>鹿程智慧油站商户平台</title>
		<meta name="description" content="鹿程科技是提供加油站互联网化零管系统、营销及支付和大数据分析运营服务的行业领先科技公司。鹿程科技充分了解加油站行业的需求和新兴互联网的发展,依靠业内最先进的科技和标准化的运营,持续帮助油站业务发展创造价值。"/>
		<meta name="keywords" content="智慧油站,鹿程,鹿程智慧油站,鹿程智慧油站微信支付,加油站微信支付,加油站营销管理"/>
		<link rel="icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="shortcut icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<link rel="stylesheet" href="../css/style.css" />
	</head>
<body>
	<style>.layui-form-checkbox i{height: auto}</style>
	<form action="" class="layui-form marke-rech">
		<div class="marke-rech-add">
			<dl>
				<dt>充值金额</dt>
				<dd><input type="text" min="0" lay-verify="required|num" lay-verType="tips" name="recharge_money" class="layui-input" /></dd>
			</dl>
			<dl>
				<dt>赠送金额</dt>
				<dd><input type="text" min="0" lay-verify="required|num" lay-verType="tips" name="preferential_money" class="layui-input" /></dd>
			</dl>
		</div>
		<div class="marke-rech-input">
			<span>赠送方式</span><input name="scale" type="radio" title="定额" value="1" checked><input name="scale" type="radio" value="2" title="比例"><br />
			<code>注:比例赠送指按充值金额的比例赠送,例如充值100元送10元,充值200元送20,此时充值150元将得到15元。</code>
		</div>
		<div class="marke-rech-input">
			<span>选择加油卡</span>
			<input type="checkbox" value="0" title="石化卡">
			<input type="checkbox" value="1" title="石油卡">
			<input type="checkbox" value="2" title="加油卡">
		</div>

		<div class="marke-rech-submit">
			<span class="deer-btns">取消</span>
			<button class="deer-btn" lay-submit lay-filter="btn">确定</button>
		</div>
	</form>

	<!--js-->
	<aside>
		<script type="text/javascript" src="../layui/layui.js" ></script>
		<script type="text/javascript">
			layui.use(['form','jquery','layer'], function(){
			  	var form = layui.form;
			  	var $=layui.jquery;
			  	var layer=layui.layer;
			  	var index = parent.layer.getFrameIndex(window.name)//获取序号
			  	//高度自使用
			  	parent.layer.iframeAuto(index)
			  	
			  	//表单验证
				form.verify({
			  	num: [                 //判断是否为数字
				    /^((?:[0-9]\d*))(?:\.\d{1,2})?$/
				    ,'金额格式设置不正确'   
					]
				})
				
			  	//提交
				form.on('submit(btn)', function(data){
					  console.log(data.field) //当前容器的全部表单字段，名值对形式：{name: value}
					  parent.layer.close(index)//关闭

					  
					  return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
					}); 
				//取消
				$('.deer-btns').bind('click',function(){
					parent.layer.close(index)//关闭
				})
			    
			});
			</script>
		</script>
	</aside>
	<!--js-->
	
	
	
</body>
</html>